public class Good {
    int id;             // 商品id
    String name;        // 商品名字
    double price;       // 商品单价
    int number;         // 进货数量
    double money;       // 总价
    String people;      // 审批人
 
    // 创建带参构造方法
    public Good(int id, String name, double price, int number, double money, String people) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.number = number;
        this.money = money;
        this.people = people;
    }
 
    @Override
    public String toString() {   // 重写toString方法
        return
                "进货记录编号=" + id +
                "\n商品名称='" + name + '\'' +
                "\n单价=" + price +
                "\n库存数量=" + number +
                "\n联系人='" + people + '\'' +
                '\n';
    }
 
    public void setNumber(int number){
        this.number = number;
    }
}